<template>
	<div class="main-content">
		<div class="information-form">
			<h3>楼盘动态详情</h3>
			<ul class="housing-list">
				<li>
					<div class="list-info-template col-md-6">
						<label class="control-label" for="">楼盘名称:</label>
						<div class="control-details">
							<p class="ellipsis" v-text="dynamic.premisesName"></p>
						</div>
					</div>
					<div class="list-info-template col-md-6">
						<label class="control-label" for="">创建时间:</label>
						<div class="control-details">
							<p class="ellipsis" v-text="dynamic.createTime"></p>
						</div>
					</div>
				</li>
				<li>
					<div class="list-info-template col-md-6">
						<label class="control-label" for="">是否显示:</label>
						<div class="control-details">
							<p class="ellipsis" v-text="dynamic.canSeeName"></p>
						</div>
					</div>
					<div class="list-info-template col-md-6">
						<label class="control-label" for="">楼盘动态:</label>
						<div class="control-details">
							<p class="ellipsis" v-text="dynamic.title"></p>
						</div>
					</div>
				</li>
				<!-- <li>
					<div class="list-info-template col-sm-12">
						<label class="control-label" for="">动态简介:</label>
						<div class="control-text">
							<p v-html="dynamic.remark"></p>
						</div>
					</div>
				</li> -->
				<li>
					<div class="list-info-template col-sm-12">
						<label class="control-label" for="">动态内容:</label>
						<div class="control-text">
							<p v-html="dynamic.content"></p>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</div>

</template>

<script>
	export default {
		data() {
			return {
				dynamic: {}
			}
		},
		components: {},
		mounted: function() {
			this.initDynamic();
		},
		methods: {
			initDynamic() {
				var _self = this;
				var params = {};
				params["id"] = _self.$route.params.id;
				var body = {};
				body.params = params;
				var url = _self.utilHelper.apiUrl + "/api/getPremisesDynamicDetail";
				this.$http.post(url, body).then((response) => {
					var data = response.body.resData;
					_self.dynamic = data.premisesDynamic;
				}, (response) => {
				});
			}
		}
	}
</script>